﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminPortal.master" AutoEventWireup="true" CodeBehind="SetActionToUser.aspx.cs" Inherits="Garlic.SystemManagement.SetActionToUser" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--工具栏-->
    <cc1:GeneralToolBar ID="TopToolBar" runat="server" CommandBarString="保存|Save|save.gif;展开/隐藏查询|Hide|icon-collapse.png|SetVisibility('divSearch');查询|Search|Icon-Search.png"
        IconURI="~/images/icon" CssClass="ToolBar" OnOnClick="TopToolBar_OnClick" />
   
    请管理该用户在其角色中的动作：<asp:HiddenField ID="hdRoleID" runat="server" />
    <!--查询结果列表-->
    <yyc:SmartGridView ID="SmartGrid" runat="server" AutoGenerateColumns="False" AllowSorting="True"
        DataKeyNames="Action_id" Width="100%" CssClassMouseOver="OverRow" AllowPaging="True"
        DataSourceID="SmartDataViewSource" OnRowDataBound="SmartGrid_RowDataBound" CheckItemID="checkitem"
        CheckAllID="checkall">
        <Columns>
            <asp:TemplateField>
                <headertemplate>
                    <asp:checkbox id="checkall" runat="server" />                
                
</headertemplate>
                <itemstyle width="18px" />
                <headerstyle width="18px" />
                <itemtemplate>
                    <asp:checkbox id="checkitem" runat="server" />                
                
</itemtemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Action_name" HeaderText="动作名" SortExpression="Action_name" >
                <headerstyle width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="action_name_cn" HeaderText="动作显示名" SortExpression="action_name_cn" >
                <headerstyle width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="Action_Description" HeaderText="动作描述" SortExpression="Action_Description" >
                <headerstyle width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="Action_url" HeaderText="链接地址" SortExpression="Action_url" >
                <headerstyle width="70px" />
            </asp:BoundField>
            
        </Columns>
        <SortTip SortAscImage="~/Images/icon/asc.gif" SortDescImage="~/Images/Icon/desc.gif" />
        <PagerSettings Position="TopAndBottom" FirstPageText="&lt;font face='webdings'&gt;9&lt;/font&gt;"
            PreviousPageText="&lt;font face='webdings'&gt;3&lt;/font&gt;" NextPageText="&lt;font face='webdings'&gt;4&lt;/font&gt;"
            LastPageText="&lt;font face='webdings'&gt;:&lt;/font&gt;" />
    </yyc:SmartGridView>
    &nbsp;&nbsp;
    <asp:ObjectDataSource ID="SmartDataViewSource" runat="server" SortParameterName="orderText"
        SelectMethod="GetList_User" TypeName="Garlic.BLL.ActionManager">
        <SelectParameters>
            <asp:Parameter Name="textWhere" Type="String" DefaultValue="" />
            <asp:Parameter Name="orderText" Type="String" />
            <asp:Parameter Name="findByMenu" Type="Boolean" DefaultValue="false" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>


